package com.scf.guaranty.dao;

import com.scf.guaranty.entity.Guaranty;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 担保物管理表(Guaranty)表数据库访问层
 *
 * @author makejava
 * @since 2021-11-12 17:12:52
 */
@Mapper
public interface GuarantyDao {
    List<Guaranty> getAll();

    void add(Guaranty guaranty);

    void update(Guaranty guaranty);

    void deleteById(int id);

    List<Guaranty> getByCondition(@Param("name") String name, @Param("type") String type);

    List<Guaranty> getByApproval(@Param("status") String status, @Param("name") String name, @Param("type") String type);

    List<Guaranty> getById(int id);

    void pass(int id);

    void reject(int id);
}

